<!-- 机器人的信息 -->
<template>
  <div class="intimacy-tips">
    <van-dialog v-model:show="props.intimacyVisible" title="Intimacy tips" :showConfirmButton="false" >
      <div class="desc">Pleasant chatting and sending gifts can quickly increase intimacy.</div>
      <div class="progess"><img src="@/assets/images/progess.png" class="progess" /></div>
      <div class="ok" @click="ok">OK</div>
      <div class="instructions">Reach the specified intimacy level to receive a  limited number of prizes!</div>
    </van-dialog>
  </div>
</template>

<script lang="ts" setup>
const emit = defineEmits(['close'])
const props = defineProps({
  intimacyVisible: {
    type: Boolean,
    default: false,
  }
})

const ok = () => {
  emit('close')
}

</script>

<style lang="scss" scoped>
:deep() {
  .van-dialog{
    background: rgba(52, 51, 59, 1);
    width: 300px;
    padding: 16px;
    .van-dialog__header {
      color: #fff;
      padding-top: 0;
      font-size: 17px;
    }
  }
}
.desc {
  color: #EBEBEB;
  text-align: center;
  margin-top: 8px;
}
.progess {
  margin-top: 16px;
}
.ok {
  background: #F53A65;
  padding: 10px 14px;
  border-radius: 14px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  margin-top: 16px;
}
.instructions {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  color: #858585;
  margin-top: 8px;
}
</style>